package com.dlx.activity.client;

import com.dlx.model.activity.RechargeActivity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.time.LocalDateTime;

/**
 * <h3>smms_parent</h3>
 *
 * @author nglon
 * @description <p>充值活动调用接口类</p>
 * @date 2021-11-19 19:31
 **/
@FeignClient("service-activity")
@Component
public interface RechargeActivityFeignClient {

    @PostMapping("/admin/activity/rechargeActivity/whetherInActivityTime")
    RechargeActivity whetherInActivityTime(@RequestBody LocalDateTime currentTime);

}
